<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<script type="text/javascript" src="__PUBLIC__/qwadmin/js/jquery.fileupload.js"></script>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
				<style>
					.menu_nav{ width:70%; margin-left:5%; height:40px; border-bottom:1px solid #438eb9; margin-bottom:30px; }
					.menu_nav dl{ margin-left:20px;}
					.menu_nav dl dd a{ padding:9px 20px; float:left; display:block;font-size:14px;}
					.menu_nav dl dd a.active{  border:1px solid #438eb9;border-bottom:1px solid #fff; position:relative; font-weight:bold;}
				</style>
				<form class="form-horizontal" name="myfromSubmit" id="form" method="post" action="">
				<input type="hidden" value="{$info.type}" name="poster[type]" id="types" />
				<input type="hidden" value="{$info.id}" name="poster[id]"/>
				<div class="row" style=" margin-top:20px;">
                    <div class="col-xs-12">
						<div class="form-group">
							<label class="col-sm-1 control-label no-padding-right" for="form-field-1">
								标题 </label>
							<div class="col-sm-9">
								<input type="text" name="poster[title]" dataType="*" nullmsg="标题不能为空"   placeholder="标题"
									   class="col-xs-10 col-sm-5" value="{$info['title']}">
								<span class="help-inline col-xs-12 col-sm-7">
											<span class="middle"></span>
										</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-1 control-label no-padding-right" for="form-field-1">
								备注 </label>
							<div class="col-sm-9">
								<textarea name="poster[note]" placeholder="备注" class="col-xs-10 col-sm-5">{$info['note']}</textarea>
								<span class="help-inline col-xs-12 col-sm-7">
									<span class="middle"></span>
								</span>
							</div>
						</div>
					</div>
				</div>
                <div class="row">
					<div class="menu_nav">
						<dl>
							<dd data-id="1"><a href="javascript:;" <eq name="info.type" value="1">class="active"</eq>>支付宝</a></dd>
							<dd data-id="2"><a href="javascript:;" <eq name="info.type" value="2">class="active"</eq>>微信支付</a></dd>
						</dl>
					</div>
                    <div class="col-xs-12">
							<span <eq name="info.type" value="2">style="display:none;"</eq> class="pay_info">
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-1">
										支付宝账户 </label>
									<div class="col-sm-9">
										<input type="text" dataType="*" nullmsg="支付宝账号不能为空" name="poster[alipay][account]" placeholder="支付宝账户"
											   class="col-xs-10 col-sm-5" value="{$info.info.account}">
										<span class="help-inline col-xs-12 col-sm-7">
													<span class="middle"></span>
												</span>
									</div>
								</div>

								<div class="space-4"></div>
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-1">
										支付宝PID </label>
									<div class="col-sm-9">
										<input type="text" dataType="*" nullmsg="支付宝PID不能为空" name="poster[alipay][pid]" placeholder="支付宝PID"
											   class="col-xs-10 col-sm-5" value="{$info.info.pid}">
										<span class="help-inline col-xs-12 col-sm-7">
													<span class="middle"></span>
												</span>
									</div>
								</div>

								<div class="space-4"></div>
								
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-1">
										支付宝应用ID </label>
									<div class="col-sm-9">
										<input type="text" dataType="*" nullmsg="支付宝PID不能为空" name="poster[alipay][app_id]" placeholder="支付宝PID"
											   class="col-xs-10 col-sm-5" value="{$info.info.app_id}">
										<span class="help-inline col-xs-12 col-sm-7">
													<span class="middle"></span>
												</span>
									</div>
								</div>

								<div class="space-4"></div>

								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-2">
										支付宝KEY </label>
									<div class="col-sm-9">
										<input type="text" dataType="*" nullmsg="支付宝KEY不能为空" name="poster[alipay][sign_key]" placeholder="支付宝KEY"
											   class="col-xs-10 col-sm-5" value="{$info.info.sign_key}">
										<span class="help-inline col-xs-12 col-sm-7">
													<span class="middle"></span>
												</span>
									</div>
								</div>

								<div class="space-4"></div>
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-3">
										rsa密匙 </label>
									<div class="col-sm-6">
										<div style=" margin:10px 0px 0px 0px;" id="file_max_data3">
										</div>
										<script>
											$('#file_max_data3').fileMax({ext_type:'pem',name:"poster[alipay][private_key_path]", file_size:1, value:"{$info.info.private_key_path}"});
										</script>
									</div>
								</div>
								<div class="space-4"></div>
								
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-3">
										支付宝公匙 </label>
									<div class="col-sm-9">
										<textarea dataType="*" nullmsg="支付宝公匙不能为空" name="poster[alipay][public_key]" placeholder="支付宝公匙" class="col-xs-10 col-sm-5">{$info.info.public_key}</textarea>
									</div>
								</div>
								<div class="space-4"></div>
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-3">
										企业编码 </label>
									<div class="col-sm-9">
										<input type="text" dataType="*" value="{$info.info.enterprise_code}" nullmsg="企业编码不能为空" name="poster[alipay][enterprise_code]" placeholder="企业编码"
											   class="col-xs-10 col-sm-5">
										<span class="help-inline col-xs-12 col-sm-7">
													<span class="middle"></span>
												</span>
									</div>
								</div>
								<div class="space-4"></div>
								
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-3">
										海关企业备案名 </label>
									<div class="col-sm-9">
										<input type="text" dataType="*" value="{$info.info.customs_name}" nullmsg="报关关口不能为空" name="poster[alipay][customs_name]" placeholder="报关关口"
											   class="col-xs-10 col-sm-5">
										<span class="help-inline col-xs-12 col-sm-7">
													<span class="middle"></span>
												</span>
									</div>
								</div>
								
								<div class="space-4"></div>
								
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-3">
										报关关口 </label>
									<div class="col-sm-9">
										<input type="text" dataType="*" nullmsg="报关关口不能为空" value="{$info.info.port}" name="poster[alipay][port]" placeholder="报关关口"
											   class="col-xs-10 col-sm-5">
										<span class="help-inline col-xs-12 col-sm-7">
													<span class="middle"></span>
												</span>
									</div>
								</div>
								<div class="space-4"></div>
							</span>
							
							<span class="pay_info" <eq name="info.type" value="1">style="display:none;"</eq>>
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-1">
										APPID </label>
									<div class="col-sm-9">
										<input type="text" dataType="*" nullmsg="APPID不能为空" name="poster[weixin][app_id]" placeholder="APPID"
											   class="col-xs-10 col-sm-5" value="{$info.info.app_id}">
										<span class="help-inline col-xs-12 col-sm-7">
													<span class="middle"></span>
												</span>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-1">
										AppSecret </label>
									<div class="col-sm-9">
										<input type="text" dataType="*" nullmsg="AppSecret不能为空" name="poster[weixin][app_secret]" placeholder="AppSecret"
											   class="col-xs-10 col-sm-5" value="{$info.info.app_secret}">
										<span class="help-inline col-xs-12 col-sm-7">
													<span class="middle"></span>
												</span>
									</div>
								</div>

								<div class="space-4"></div>

								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-2">
										PaySignKey(Key) </label>
									<div class="col-sm-9">
										<input type="text" dataType="*" nullmsg="PaySignKey(Key)不能为空" name="poster[weixin][pay_aign_kay]" placeholder="PaySignKey(Key)"
											   class="col-xs-10 col-sm-5" value="{$info.info.pay_aign_kay}">
										<span class="help-inline col-xs-12 col-sm-7">
													<span class="middle"></span>
												</span>
									</div>
								</div>

								<div class="space-4"></div>

								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-3">
										商户号(PartnerID) </label>
									<div class="col-sm-9">
										<input type="text" dataType="*" nullmsg="商户号(PartnerID)不能为空" name="poster[weixin][partner_id]" placeholder="PaySignKey(Key)"
											   class="col-xs-10 col-sm-5" value="{$info.info.partner_id}">
										<span class="help-inline col-xs-12 col-sm-7">
													<span class="middle"></span>
												</span>
									</div>
								</div>
								<div class="space-4"></div>
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-3">
										企业编码 </label>
									<div class="col-sm-9">
										<input type="text" dataType="*" nullmsg="企业编码不能为空" value="{$info.info.enterprise_code}" name="poster[weixin][enterprise_code]" placeholder="企业编码"
											   class="col-xs-10 col-sm-5">
										<span class="help-inline col-xs-12 col-sm-7">
													<span class="middle"></span>
												</span>
									</div>
								</div>
								
								<div class="space-4"></div>
								
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-3">
										报关关口 </label>
									<div class="col-sm-9">
										<input type="text" dataType="*" nullmsg="报关关口不能为空" value="{$info.info.port}" name="poster[weixin][port]" placeholder="报关关口"
											   class="col-xs-10 col-sm-5">
										<span class="help-inline col-xs-12 col-sm-7">
													<span class="middle"></span>
												</span>
									</div>
								</div>
								
								<div class="space-4"></div>
								<!-- ============================================================================================================================== -->
								<fieldset style=" width:70%; margin-left:5%;">
								<legend>退款需要以下证书</legend>
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-3">
										API证书 </label>
									<div class="col-sm-6">
										<div style=" margin:10px 0px 0px 0px;" id="file_max_data">
										</div>
										<script>
											$('#file_max_data').fileMax({ext_type:'pem',name:"poster[weixin][cert]", file_size:1,value:"{$info.info.cert}"});
										</script>
									</div>
								</div>
								<div class="space-4"></div>
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right" for="form-field-3">
										API加密KEY </label>
									<div class="col-sm-6">
										<div style=" margin:10px 0px 0px 0px;" id="file_max_data1">
										</div>
										<script>
											$('#file_max_data1').fileMax({ext_type:'pem',name:"poster[weixin][key]", file_size:1,value:"{$info.info.key}"});
										</script>
									</div>
								</div>
								<div class="space-4"></div>
								</fieldset>
							</span>
                            <div class="col-md-offset-1 col-md-9">
                                <button class="btn btn-info submit" type="submit">
                                    提交
                                </button>
                            </div>

                            <!-- PAGE CONTENT ENDS -->


                    </div><!-- /.col -->
                </div><!-- /.row -->
                        </form>
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->
<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
	$('.menu_nav dl dd').click(function(){
		$('#types').val( $(this).attr('data-id') );
		$('.menu_nav dl dd a.active').removeClass('active');
		$(this).find('a').addClass('active');
		$('.form-horizontal span.pay_info').each(function(){ $(this).hide() });
		$('.form-horizontal span.pay_info').eq($(this).index()).show();
	});
</script>
</body>
</html>
